﻿#ifndef _BRICKQUESTION_H_
#define _BRICKQUESTION_H_

#include "Object.h"
#include "Sprite.h"




class BrickQuestion : public Object
{
	float _xOld;
	float _yOld;

	float _vx;
	float _vy;

	float _accelY;

	bool isMoveUp;			//kiem tra gach co duoc day len chua?
	//Sprite* _spriteArr[4];
	//bool isBreaked;

	//float	xBreak1;		//Tham số của các mảnh vỡ. 1 là mảnh trên, 2 là mảnh dưới
	//float	yBreak1;
	//float	xBreak2;
	//float	yBreak2;
	//float	vyBreak1;
	//float	vyBreak2;
	//float	vxBreak1;
	//float	vxBreak2;
	//float	ayBreak;
	//float	angle;
public:

	BrickQuestion(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Object_State);
	~BrickQuestion();


	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);

	OBJECT_TYPE GetTypeObject();
	void ResetRect();
	void ChangeState(int state);
};

#endif